package com.dex4d.ui.mine.activity;

import android.widget.TextView;

import com.dex4d.R;
import com.dex4d.core.AppToolBarBaseActivity;
import com.dex4d.ui.main.model.TradeResult;
import com.dex4d.utils.Commons;

import butterknife.BindView;

/**
 * Created by chengyuchun on 2018/11/7.
 */
public class PayReferralSuccessActivity extends AppToolBarBaseActivity {

    @BindView(R.id.tv_trans_id)
    TextView tv_trans_id;

    @BindView(R.id.tv_gas)
    TextView tv_gas;

    @Override
    protected void initToolbar() {
        showRightDone();
        hideBackView();
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_referral_success;
    }

    @Override
    protected void initVariables() {
        TradeResult result = getIntent().getParcelableExtra(Commons.BUNDLE_KEYS.TRADE_RESULT);
        tv_gas.setText(result.getGas());
        tv_trans_id.setText(result.getHash());
    }

    @Override
    protected void loadData() {

    }
}
